<?php

namespace Alipay\Common;

class RequestBase implements Request
{
    /**
     * @var string $method
     */
    protected $method;

    /**
     * @var string $response
     */
    protected $response;

    /**
     * @var string $appAuthToken
     */
    protected $appAuthToken = '';

    /**
     * @var bool $getRequestUrl
     */
    protected $getRequestUrl = false;

    public function getAppAuthToken(): string
    {
        return $this->appAuthToken;
    }

    public function getResponse(): string
    {
        return $this->response;
    }

    public function getMethod(): string
    {
        return $this->method;
    }

    public function generate(): array
    {
        return [];
    }

    public function getRequestUrl(): bool
    {
        return $this->getRequestUrl;
    }

    public function setAppAuthToken(string $appAuthToken): Request
    {
        $this->appAuthToken = $appAuthToken;
        return $this;
    }
}
